@extends("backend.master")
@section("content")
	<h2>{{$title}}</h2>
	@if(Session::has("error"))
		<div class="warningx wredy">{{Session::get("error")}}</div>
	@endif

	@if(Session::has("success"))
		<div class="warningx wredy">{{Session::get("success")}}</div>
	@endif

	{{Form::open(array("route"=>"registeruser_post"))}}

	<p class="minihead">Tên gọi:</p>
	{{Form::text('first_name',Input::old("fisrt_name"),array('class'=>'form-control'))}}

	<p class="minihead">Họ:</p>
	{{Form::text('last_name',Input::old("last_name"),array('class'=>'form-control'))}}

	<p class="minihead">Email:</p>
	{{Form::email('email',Input::old("email"),array('class'=>'form-control'))}}

	<p class="minihead">Tên truy cập:</p>
	{{Form::text('username',Input::old("username"),array('class'=>'form-control'))}}

	<p class="minihead">Mật khẩu:</p>
	{{Form::password('password',array('class'=>'form-control'))}}

	<p class="minihead">Xác nhận mật khẩu:</p>
	{{Form::password('repassword',array('class'=>'form-control'))}}

	<p class="minihead">Mã xác nhận:</p>
	{{Form::captcha()}}
	
	{{Form::submit('Đăng ký',array("class"=>"btn btn-primary btn-lg"))}}
	
	{{Form::close()}}
@endsection